home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / nautilus-cd-burner.postrm < prev    next >
Encoding:
Text File  |  2007-04-09  |  1.4 KB  |  41 lines

  1. #!/bin/sh
  2. set -e
  3. # Automatically added by dh_gconf
  4. if [ "$1" = purge ]; then
  5.     OLD_DIR=/etc/gconf/schemas
  6.     SCHEMA_FILES="nautilus-cd-burner.schemas "
  7.     if [ -d $OLD_DIR ]; then
  8.         for SCHEMA in $SCHEMA_FILES; do
  9.             rm -f $OLD_DIR/$SCHEMA
  10.         done
  11.         rmdir -p --ignore-fail-on-non-empty $OLD_DIR
  12.     fi
  13. fi
  14. # End automatically added section
  15. # Automatically added by dh_desktop
  16. if [ "$1" = "remove" ] && which update-desktop-database >/dev/null 2>&1 ; then
  17.     update-desktop-database -q
  18. fi
  19. # End automatically added section
  20. # Automatically added by dh_iconcache
  21. [ -d /usr/share/icons/hicolor ] && touch -m /usr/share/icons/hicolor || true
  22. if [ "$1" = "remove" ] && \
  23.    [ -x "`which gtk-update-icon-cache 2>/dev/null`" ] && \
  24.    [ -f /etc/gtk-2.0/gdk-pixbuf.loaders ]; then
  25.        if [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type d | wc -l`" -gt 0 ] && \
  26.        [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type f -name index.theme | wc -l`" -eq 1 ]; then
  27.            # we shouldn't bomb out, if gtk-update-icon-cache failes, 
  28.         # it's not important enough
  29.         gtk-update-icon-cache -q /usr/share/icons/hicolor || true;
  30.     else
  31.         # if the icon theme directory has no subdirs, we can remove the cache
  32.         rm -f /usr/share/icons/hicolor/icon-theme.cache || true;
  33.     fi
  34. fi
  35. # End automatically added section
  36. # Automatically added by dh_makeshlibs
  37. if [ "$1" = "remove" ]; then
  38.     ldconfig
  39. fi
  40. # End automatically added section
  41.